<html>
<head>
    <link rel="stylesheet" type="text/css" href="resources/fitweb.css"/>
    <link rel="stylesheet" type="text/css" href="resources/style.css"/>
    <link rel="stylesheet" type="text/css" href="style.css"/>
    <style type="text/css">
        html {
        font-size: 16pt;
        }

        li {
        font-size: 12pt;
        }

        .page {
        height: 100%;
        width: 800px;
        }
    </style>
</head>
<body>
<div class="centered page">
    <div class="heading rounded">
        <h1>Installing and Running Fitweb</h1>
    </div>
    <div class="content rounded">
        <h4>Requirements</h4>
        <ul>
            <li><b>Java</b> - the latest version, from <a href="http://java.sun.com/javase/downloads/index.jsp">here</a>
            </li>
            <li><b>Ant</b> - the latest version, from <a href="http://ant.apache.org/bindownload.cgi">here</a>
            </li>
            <li><b>fitweb-${version}.zip</b> - if you haven't got it already, get it <a
                    href="http://code.google.com/p/fitweb/downloads/list">here</a></li>
        </ul>
    </div>
    <div class="content rounded">
        <h4>Installation</h4>
        <ul>
            <li>Unzip fitweb-${version}.zip</li>
            <li>In a command or terminal window, change to the <b>fitweb/</b> directory and run Ant:
                <table style="border: thin dashed #999999; background-color: white; padding-top: 3px;">
                    <tr>
                        <td>&gt; cd fitweb<br/>&gt; ant</td>
                    </tr>
                </table>
            </li>
            <li>... all the tests will run ...</li>
            <li>In a browser, open <b>fitweb/out/test-results/junit-noframes.html</b> to see the test results</li>
            <li>If there are any failures, a good place to start is your proxy settings in <b>fitweb/lib/fitweb.properties</b>
            </li>
        </ul>
    </div>
    <div class="content rounded">
        <h4>What's in the box? fitweb-${version}.zip contains:</h4>
        <ul>
            <li>/lib - All the Fit and WebDriver libraries required to run fitweb.</li>
            <li>/src - A single test runner class for you to adapt to your own project</li>
            <li>/tests - Some example tests to get you started</li>
            <li>This file (Readme.html)</li>
        </ul>
    </div>
    <div class="content rounded">
        <h4>Running Single Tests in any IDE:</h4>
        <ul>
            <li><em>EITHER</em> invoke org.fitweb.SingleTestRunner, passing in the test name as the first program argument;</li>
            <li><em>OR</em>, write a JUnit test like the example in org.fitweb.SingleTestRunner.</li>
        </ul>
        <h4>Or in IntelliJ:</h4>
        <ul>
            <li>Install <a href="http://code.google.com/p/anyrunner/">AnyRunner</a> plugin</li>
            <li>In any Fit test (an HTML file), hit CTRL-SHIFT-F10 to create a new run configuration.</li>
            <li>Edit this if necessary (ALT-SHIFT-F10)</li>
            <li>Hit SHIFT-F10 to re-run the run configuration.</li>
        </ul>
    </div>
</div>
</body>
</html>